function [] = Frequency(e)

L =  length(e);                                        % Length of signal
fftLength= 2^nextpow2(L);                    % Next power of 2 from length of E

E = fft(e,fftLength);
f = floor(linspace(0,L/2,fftLength/2+1));

[maxAmp freq] = max(abs(E));
freq = f(freq);
e(freq)
% hist (e, L)
% max(e)
% figure
plot(f,2*abs(E(1:fftLength/2+1)))
title('Amplitude Spectrum of y(t)')
xlabel('Frequency (Hz)')
ylabel('Amplitude (mV)')
